package cn.xjt.dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.client.RestTemplate;

/**
 * @Author: xu
 * @Description: TODO
 * @Date: 2021/11/4 23:08
 */
@Component
public class RestTemplateTestCustomer
{
	@Autowired
	RestTemplate restTemplate;

	public String getData()
	{
		return restTemplate.getForObject("http://provider/hello",String.class);
	}
}
